package com.legal.aid.app.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.legal.aid.common.annotation.Excel;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 新增订单DTO
 *
 */
public class OrderAddDto implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 案件标题 问题描述 */
    @Excel(name = "案件标题")
    private String caseTitle;


    /** 订单价格 */
    @Excel(name = "订单价格")
    private Double price;

    /** 律师姓名 */
    @Excel(name = "律师id")
    private Long lawyerId;

    /**
     * 用户姓名
     */
    @Excel(name = "用户姓名")
    private String userName;

    /**
     * 用户手机号
     */
    @Excel(name = "用户手机号")
    private String phone;

    /**
     * 预约时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date appointmentTime;


    /**
     * 用户联系地址，约谈地址
     */
    @Excel(name = "约谈地址")
    private String address;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Long getLawyerId() {
        return lawyerId;
    }

    public void setLawyerId(Long lawyerId) {
        this.lawyerId = lawyerId;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public void setCaseTitle(String caseTitle)
    {
        this.caseTitle = caseTitle;
    }

    public String getCaseTitle()
    {
        return caseTitle;
    }

    public Date getAppointmentTime() {
        return appointmentTime;
    }

    public void setAppointmentTime(Date appointmentTime) {
        this.appointmentTime = appointmentTime;
    }

    public void setPrice(Double price)
    {
        this.price = price;
    }

    public Double getPrice()
    {
        return price;
    }

    @Override
    public String toString() {
        return "OrderAddDto{" +
                "caseTitle='" + caseTitle + '\'' +
                ", price=" + price +
                ", lawyerId=" + lawyerId +
                ", userName='" + userName + '\'' +
                ", phone='" + phone + '\'' +
                ", appointmentTime=" + appointmentTime +
                ", address='" + address + '\'' +
                '}';
    }
}
